package com.suny.sf_server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suny.AccountInfo.domain.AccountInfo;
import com.suny.AccountInfo.dto.AccountInfoAddDTO;
import com.suny.AccountInfo.dto.AccountInfoPutDTO;
import com.suny.AccountInfo.dto.LoginDTO;
import com.suny.AccountInfo.dto.AccountQueryDTO;
import com.suny.AccountInfo.vo.AccountInfoVO;
import com.suny.AccountInfo.vo.AccountVO;
import com.suny.result.PageDTO;

/**
* @author sun
* @description 针对表【account_info(人员管理表)】的数据库操作Service
* @createDate 2024-12-26 13:58:42
*/
public interface AccountInfoService extends IService<AccountInfo> {

    AccountVO login(LoginDTO loginDto);

    Page<AccountInfoVO> getAccount(PageDTO pageDTO);


    Boolean update(AccountInfoPutDTO accountInfoPutDTO);

    String generateAccount();

    Boolean addAccountInfo(AccountInfoAddDTO accountInfoAddDTO);
    /**
     * 条件查询人员列表
     */
    Page<AccountInfoVO> getListByCondition(AccountQueryDTO query);

    Boolean updateStatus(String account, Integer status);
}
